.class public final Lkairo/android/ui/a;
.super Landroid/view/SurfaceView;

# interfaces
.implements Landroid/view/SurfaceHolder$Callback;


# static fields
.field private static A:Landroid/graphics/Rect;

.field protected static a:Lkairo/android/ui/a;

.field private static x:Landroid/graphics/Rect;

.field private static y:Landroid/util/DisplayMetrics;

.field private static z:Lkairo/android/ui/o;


# instance fields
.field private B:Landroid/widget/EditText;

.field private C:Z

.field private D:Ljava/lang/String;

.field protected b:Lkairo/android/ui/o;

.field protected c:I

.field protected d:Lkairo/android/ui/n;

.field protected e:Landroid/widget/FrameLayout;

.field protected f:Z

.field protected g:I

.field protected h:Lkairo/android/h/e;

.field protected i:I

.field protected j:I

.field protected k:[Ljava/lang/String;

.field protected l:[Ljava/lang/String;

.field protected m:I

.field protected n:[I

.field protected o:I

.field protected p:I

.field protected q:I

.field protected r:I

.field protected s:I

.field protected t:I

.field protected u:Z

.field protected v:Z

.field protected w:Z


# direct methods
.method static constructor <clinit>()V
    .locals 2

    const/4 v1, 0x0

    const/4 v0, 0x0

    sput-object v0, Lkairo/android/ui/a;->a:Lkairo/android/ui/a;

    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    sput-object v0, Lkairo/android/ui/a;->x:Landroid/graphics/Rect;

    new-instance v0, Landroid/util/DisplayMetrics;

    invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V

    sput-object v0, Lkairo/android/ui/a;->y:Landroid/util/DisplayMetrics;

    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0, v1, v1, v1, v1}, Landroid/graphics/Rect;-><init>(IIII)V

    sput-object v0, Lkairo/android/ui/a;->A:Landroid/graphics/Rect;

    return-void
.end method

.method private constructor <init>()V
    .locals 5

    const/4 v4, 0x2

    const/4 v3, 0x0

    const/4 v1, -0x1

    const/4 v2, 0x1

    invoke-static {}, Lkairo/android/ui/IApplication;->a()Lkairo/android/ui/IApplication;

    move-result-object v0

    invoke-virtual {v0}, Lkairo/android/ui/IApplication;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Landroid/view/SurfaceView;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lkairo/android/ui/a;->b:Lkairo/android/ui/o;

    iput v1, p0, Lkairo/android/ui/a;->i:I

    iput v1, p0, Lkairo/android/ui/a;->j:I

    new-array v0, v4, [Ljava/lang/String;

    const-string v1, ""

    aput-object v1, v0, v3

    const-string v1, ""

    aput-object v1, v0, v2

    iput-object v0, p0, Lkairo/android/ui/a;->k:[Ljava/lang/String;

    new-array v0, v4, [Ljava/lang/String;

    const-string v1, ""

    aput-object v1, v0, v3

    const-string v1, ""

    aput-object v1, v0, v2

    iput-object v0, p0, Lkairo/android/ui/a;->l:[Ljava/lang/String;

    const/16 v0, 0x3c

    new-array v0, v0, [I

    iput-object v0, p0, Lkairo/android/ui/a;->n:[I

    const/16 v0, 0xa

    iput v0, p0, Lkairo/android/ui/a;->s:I

    const/4 v0, 0x4

    iput v0, p0, Lkairo/android/ui/a;->t:I

    iput-boolean v2, p0, Lkairo/android/ui/a;->w:Z

    invoke-virtual {p0}, Lkairo/android/ui/a;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v0

    invoke-virtual {p0, v2}, Lkairo/android/ui/a;->setKeepScreenOn(Z)V

    invoke-interface {v0, p0}, Landroid/view/SurfaceHolder;->addCallback(Landroid/view/SurfaceHolder$Callback;)V

    invoke-virtual {p0, v2}, Lkairo/android/ui/a;->setFocusable(Z)V

    invoke-virtual {p0, v2}, Lkairo/android/ui/a;->setFocusableInTouchMode(Z)V

    invoke-virtual {p0}, Lkairo/android/ui/a;->requestFocus()Z

    new-instance v0, Lkairo/android/ui/n;

    invoke-direct {v0}, Lkairo/android/ui/n;-><init>()V

    iput-object v0, p0, Lkairo/android/ui/a;->d:Lkairo/android/ui/n;

    return-void
.end method

.method static synthetic a(Lkairo/android/ui/a;Landroid/widget/EditText;)Landroid/widget/EditText;
    .locals 0

    iput-object p1, p0, Lkairo/android/ui/a;->B:Landroid/widget/EditText;

    return-object p1
.end method

.method static synthetic a(Lkairo/android/ui/a;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lkairo/android/ui/a;->D:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic a(Lkairo/android/ui/a;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    iput-object p1, p0, Lkairo/android/ui/a;->D:Ljava/lang/String;

    return-object p1
.end method

.method public static a()Lkairo/android/ui/a;
    .locals 1

    sget-object v0, Lkairo/android/ui/a;->a:Lkairo/android/ui/a;

    if-nez v0, :cond_0

    new-instance v0, Lkairo/android/ui/a;

    invoke-direct {v0}, Lkairo/android/ui/a;-><init>()V

    sput-object v0, Lkairo/android/ui/a;->a:Lkairo/android/ui/a;

    :cond_0
    sget-object v0, Lkairo/android/ui/a;->a:Lkairo/android/ui/a;

    return-object v0
.end method

.method public static a(Ljava/lang/String;)Z
    .locals 4

    :try_start_0
    invoke-static {}, Lkairo/android/ui/IApplication;->a()Lkairo/android/ui/IApplication;

    move-result-object v0

    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.VIEW"

    invoke-static {p0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v3

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    const-string v2, "market://"

    invoke-virtual {p0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_0

    const/high16 v2, 0x10000000

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    :cond_0
    invoke-virtual {v0, v1}, Lkairo/android/ui/IApplication;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :catch_0
    move-exception v0

    const/4 v0, 0x0

    goto :goto_0
.end method

.method static synthetic b(Lkairo/android/ui/a;)Landroid/widget/EditText;
    .locals 1

    iget-object v0, p0, Lkairo/android/ui/a;->B:Landroid/widget/EditText;

    return-object v0
.end method

.method static synthetic c(Lkairo/android/ui/a;)Z
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lkairo/android/ui/a;->C:Z

    return v0
.end method

.method private static h(I)I
    .locals 1

    packed-switch p0, :pswitch_data_0

    :pswitch_0
    const/4 v0, -0x1

    :goto_0
    return v0

    :pswitch_1
    const/4 v0, 0x0

    goto :goto_0

    :pswitch_2
    const/4 v0, 0x1

    goto :goto_0

    :pswitch_3
    const/4 v0, 0x2

    goto :goto_0

    :pswitch_4
    const/4 v0, 0x3

    goto :goto_0

    :pswitch_5
    const/4 v0, 0x4

    goto :goto_0

    :pswitch_6
    const/4 v0, 0x5

    goto :goto_0

    :pswitch_7
    const/4 v0, 0x6

    goto :goto_0

    :pswitch_8
    const/4 v0, 0x7

    goto :goto_0

    :pswitch_9
    const/16 v0, 0x8

    goto :goto_0

    :pswitch_a
    const/16 v0, 0x9

    goto :goto_0

    :pswitch_b
    const/16 v0, 0xa

    goto :goto_0

    :pswitch_c
    const/16 v0, 0xb

    goto :goto_0

    :pswitch_d
    const/16 v0, 0x11

    goto :goto_0

    :pswitch_e
    const/16 v0, 0x12

    goto :goto_0

    :pswitch_f
    const/16 v0, 0x13

    goto :goto_0

    :pswitch_10
    const/16 v0, 0x10

    goto :goto_0

    :pswitch_11
    const/16 v0, 0x14

    goto :goto_0

    :pswitch_12
    const/16 v0, 0x15

    goto :goto_0

    :pswitch_13
    const/16 v0, 0x16

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_12
        :pswitch_13
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
        :pswitch_8
        :pswitch_9
        :pswitch_a
        :pswitch_b
        :pswitch_c
        :pswitch_d
        :pswitch_f
        :pswitch_10
        :pswitch_e
        :pswitch_11
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_12
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_13
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_13
        :pswitch_0
        :pswitch_11
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_12
        :pswitch_13
        :pswitch_0
        :pswitch_11
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_11
    .end packed-switch
.end method

.method public static m()V
    .locals 0

    return-void
.end method

.method public static n()V
    .locals 0

    return-void
.end method

.method public static q()I
    .locals 1

    invoke-static {}, Lkairo/android/ui/IApplication;->a()Lkairo/android/ui/IApplication;

    move-result-object v0

    invoke-virtual {v0}, Lkairo/android/ui/IApplication;->l()I

    move-result v0

    return v0
.end method


# virtual methods
.method public final a(Lkairo/android/ui/o;)Lkairo/android/ui/o;
    .locals 3

    const/4 v0, 0x0

    if-nez p1, :cond_6

    iget-object v1, p0, Lkairo/android/ui/a;->b:Lkairo/android/ui/o;

    if-eqz v1, :cond_0

    move-object p1, v0

    :goto_0
    return-object p1

    :cond_0
    iget-object v1, p0, Lkairo/android/ui/a;->b:Lkairo/android/ui/o;

    if-nez v1, :cond_5

    iget-boolean v1, p0, Lkairo/android/ui/a;->f:Z

    if-nez v1, :cond_1

    move-object p1, v0

    goto :goto_0

    :cond_1
    invoke-virtual {p0}, Lkairo/android/ui/a;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v1

    if-nez v1, :cond_2

    move-object p1, v0

    goto :goto_0

    :cond_2
    invoke-interface {v1}, Landroid/view/SurfaceHolder;->lockCanvas()Landroid/graphics/Canvas;

    move-result-object v1

    if-nez v1, :cond_3

    move-object p1, v0

    goto :goto_0

    :cond_3
    sget-object v2, Lkairo/android/ui/a;->z:Lkairo/android/ui/o;

    if-nez v2, :cond_4

    new-instance v2, Lkairo/android/ui/o;

    invoke-direct {v2, v1}, Lkairo/android/ui/o;-><init>(Landroid/graphics/Canvas;)V

    sput-object v2, Lkairo/android/ui/a;->z:Lkairo/android/ui/o;

    :cond_4
    sget-object v2, Lkairo/android/ui/a;->z:Lkairo/android/ui/o;

    iput-object v2, p0, Lkairo/android/ui/a;->b:Lkairo/android/ui/o;

    iget-object v2, p0, Lkairo/android/ui/a;->b:Lkairo/android/ui/o;

    invoke-virtual {v2, v1, v0}, Lkairo/android/ui/o;->a(Landroid/graphics/Canvas;Lkairo/android/ui/r;)V

    :cond_5
    iget-object p1, p0, Lkairo/android/ui/a;->b:Lkairo/android/ui/o;

    :cond_6
    invoke-virtual {p1}, Lkairo/android/ui/o;->j()V

    iget-object v0, p0, Lkairo/android/ui/a;->d:Lkairo/android/ui/n;

    invoke-virtual {p1, v0}, Lkairo/android/ui/o;->a(Lkairo/android/ui/n;)V

    goto :goto_0
.end method

.method public final a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lkairo/android/ui/a;->k:[Ljava/lang/String;

    const/4 v1, 0x0

    aput-object p1, v0, v1

    iget-object v0, p0, Lkairo/android/ui/a;->k:[Ljava/lang/String;

    const/4 v1, 0x1

    aput-object p2, v0, v1

    return-void
.end method

.method public final a(Lkairo/android/h/e;)V
    .locals 0

    iput-object p1, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    return-void
.end method

.method public final a(Lkairo/android/ui/IApplication;)V
    .locals 1

    iget-object v0, p0, Lkairo/android/ui/a;->e:Landroid/widget/FrameLayout;

    if-eqz v0, :cond_0

    :goto_0
    return-void

    :cond_0
    new-instance v0, Landroid/widget/FrameLayout;

    invoke-direct {v0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lkairo/android/ui/a;->e:Landroid/widget/FrameLayout;

    iget-object v0, p0, Lkairo/android/ui/a;->e:Landroid/widget/FrameLayout;

    invoke-virtual {v0, p0}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lkairo/android/ui/a;->e:Landroid/widget/FrameLayout;

    invoke-virtual {p1, v0}, Lkairo/android/ui/IApplication;->setContentView(Landroid/view/View;)V

    goto :goto_0
.end method

.method public final a(Z)V
    .locals 2

    invoke-static {}, Lkairo/android/ui/a;->a()Lkairo/android/ui/a;

    move-result-object v0

    invoke-virtual {v0}, Lkairo/android/ui/a;->v()I

    move-result v0

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x1

    iput-boolean v0, p0, Lkairo/android/ui/a;->v:Z

    iput-boolean p1, p0, Lkairo/android/ui/a;->u:Z

    invoke-static {}, Lkairo/android/ui/IApplication;->a()Lkairo/android/ui/IApplication;

    move-result-object v0

    invoke-virtual {v0}, Lkairo/android/ui/IApplication;->f()Landroid/os/Handler;

    move-result-object v0

    if-eqz p1, :cond_1

    new-instance v1, Lkairo/android/ui/e;

    invoke-direct {v1, p0}, Lkairo/android/ui/e;-><init>(Lkairo/android/ui/a;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :goto_1
    const-wide/16 v0, 0xa

    :try_start_0
    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_0

    :cond_1
    new-instance v1, Lkairo/android/ui/f;

    invoke-direct {v1, p0}, Lkairo/android/ui/f;-><init>(Lkairo/android/ui/a;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_1
.end method

.method public final a(I)Z
    .locals 1

    iget v0, p0, Lkairo/android/ui/a;->p:I

    and-int/2addr v0, p1

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final b(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    invoke-static {}, Lkairo/android/ui/IApplication;->a()Lkairo/android/ui/IApplication;

    move-result-object v0

    iput-object p1, p0, Lkairo/android/ui/a;->D:Ljava/lang/String;

    const/4 v1, 0x1

    iput-boolean v1, p0, Lkairo/android/ui/a;->C:Z

    iget-object v0, v0, Lkairo/android/ui/IApplication;->a:Landroid/os/Handler;

    new-instance v1, Lkairo/android/ui/b;

    invoke-direct {v1, p0}, Lkairo/android/ui/b;-><init>(Lkairo/android/ui/a;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :goto_0
    iget-boolean v0, p0, Lkairo/android/ui/a;->C:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    invoke-static {v0}, Lkairo/android/ui/IApplication;->b(I)V

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    iput-object v0, p0, Lkairo/android/ui/a;->B:Landroid/widget/EditText;

    iget-object v0, p0, Lkairo/android/ui/a;->D:Ljava/lang/String;

    return-object v0
.end method

.method public final b()Lkairo/android/ui/o;
    .locals 1

    iget-object v0, p0, Lkairo/android/ui/a;->b:Lkairo/android/ui/o;

    invoke-virtual {p0, v0}, Lkairo/android/ui/a;->a(Lkairo/android/ui/o;)Lkairo/android/ui/o;

    move-result-object v0

    return-object v0
.end method

.method public final b(Lkairo/android/ui/o;)V
    .locals 2

    iget-object v0, p0, Lkairo/android/ui/a;->b:Lkairo/android/ui/o;

    if-ne p1, v0, :cond_0

    iget-object v0, p0, Lkairo/android/ui/a;->b:Lkairo/android/ui/o;

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lkairo/android/ui/a;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v1

    iget-object v0, p0, Lkairo/android/ui/a;->b:Lkairo/android/ui/o;

    invoke-virtual {v0}, Lkairo/android/ui/o;->a()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/graphics/Canvas;

    invoke-interface {v1, v0}, Landroid/view/SurfaceHolder;->unlockCanvasAndPost(Landroid/graphics/Canvas;)V

    iget-object v0, p0, Lkairo/android/ui/a;->b:Lkairo/android/ui/o;

    invoke-virtual {v0}, Lkairo/android/ui/o;->e()V

    const/4 v0, 0x0

    iput-object v0, p0, Lkairo/android/ui/a;->b:Lkairo/android/ui/o;

    :cond_0
    return-void
.end method

.method public final b(Z)V
    .locals 0

    iput-boolean p1, p0, Lkairo/android/ui/a;->w:Z

    return-void
.end method

.method public final b(I)Z
    .locals 2

    iget v0, p0, Lkairo/android/ui/a;->q:I

    xor-int/lit8 v1, p1, -0x1

    and-int/2addr v1, v0

    iput v1, p0, Lkairo/android/ui/a;->q:I

    and-int/2addr v0, p1

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final c()V
    .locals 2

    iget-object v0, p0, Lkairo/android/ui/a;->b:Lkairo/android/ui/o;

    if-eqz v0, :cond_1

    invoke-virtual {p0}, Lkairo/android/ui/a;->d()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p0}, Lkairo/android/ui/a;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v0

    if-eqz v0, :cond_0

    sget-object v1, Lkairo/android/ui/a;->A:Landroid/graphics/Rect;

    invoke-interface {v0, v1}, Landroid/view/SurfaceHolder;->lockCanvas(Landroid/graphics/Rect;)Landroid/graphics/Canvas;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-interface {v0, v1}, Landroid/view/SurfaceHolder;->unlockCanvasAndPost(Landroid/graphics/Canvas;)V

    goto :goto_0
.end method

.method public final c(I)Z
    .locals 7

    const/4 v1, 0x1

    const/4 v0, 0x0

    iget v3, p0, Lkairo/android/ui/a;->s:I

    iget-object v2, p0, Lkairo/android/ui/a;->n:[I

    iget v4, p0, Lkairo/android/ui/a;->m:I

    iget-object v5, p0, Lkairo/android/ui/a;->n:[I

    array-length v5, v5

    add-int/2addr v4, v5

    add-int/lit8 v4, v4, -0x1

    iget-object v5, p0, Lkairo/android/ui/a;->n:[I

    array-length v5, v5

    rem-int/2addr v4, v5

    aget v2, v2, v4

    and-int/2addr v2, p1

    if-nez v2, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    iget-object v2, p0, Lkairo/android/ui/a;->n:[I

    iget v4, p0, Lkairo/android/ui/a;->m:I

    iget-object v5, p0, Lkairo/android/ui/a;->n:[I

    array-length v5, v5

    add-int/2addr v4, v5

    add-int/lit8 v4, v4, -0x2

    iget-object v5, p0, Lkairo/android/ui/a;->n:[I

    array-length v5, v5

    rem-int/2addr v4, v5

    aget v2, v2, v4

    and-int/2addr v2, p1

    if-eqz v2, :cond_2

    move v2, v1

    :goto_1
    if-ge v2, v3, :cond_2

    iget-object v4, p0, Lkairo/android/ui/a;->n:[I

    iget v5, p0, Lkairo/android/ui/a;->m:I

    iget-object v6, p0, Lkairo/android/ui/a;->n:[I

    array-length v6, v6

    add-int/2addr v5, v6

    add-int/lit8 v5, v5, -0x2

    sub-int/2addr v5, v2

    iget-object v6, p0, Lkairo/android/ui/a;->n:[I

    array-length v6, v6

    rem-int/2addr v5, v6

    aget v4, v4, v5

    and-int v5, v4, p1

    sub-int/2addr v4, v5

    if-nez v4, :cond_0

    if-eqz v5, :cond_0

    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    :cond_2
    move v0, v1

    goto :goto_0
.end method

.method public final d()V
    .locals 1

    iget-object v0, p0, Lkairo/android/ui/a;->b:Lkairo/android/ui/o;

    invoke-virtual {p0, v0}, Lkairo/android/ui/a;->b(Lkairo/android/ui/o;)V

    return-void
.end method

.method public final d(I)V
    .locals 1

    const/4 v0, -0x1

    if-ne p1, v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget v0, p0, Lkairo/android/ui/a;->r:I

    or-int/2addr v0, p1

    iput v0, p0, Lkairo/android/ui/a;->r:I

    iget v0, p0, Lkairo/android/ui/a;->o:I

    or-int/2addr v0, p1

    iput v0, p0, Lkairo/android/ui/a;->o:I

    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    invoke-virtual {v0}, Lkairo/android/h/e;->f()V

    goto :goto_0
.end method

.method public final e()Ljava/lang/String;
    .locals 2

    iget-object v0, p0, Lkairo/android/ui/a;->l:[Ljava/lang/String;

    const/4 v1, 0x0

    aget-object v0, v0, v1

    return-object v0
.end method

.method public final e(I)V
    .locals 2

    const/4 v0, -0x1

    if-ne p1, v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget v0, p0, Lkairo/android/ui/a;->o:I

    xor-int/lit8 v1, p1, -0x1

    and-int/2addr v0, v1

    iput v0, p0, Lkairo/android/ui/a;->o:I

    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    invoke-virtual {v0}, Lkairo/android/h/e;->g()V

    goto :goto_0
.end method

.method public final f()Ljava/lang/String;
    .locals 2

    iget-object v0, p0, Lkairo/android/ui/a;->l:[Ljava/lang/String;

    const/4 v1, 0x1

    aget-object v0, v0, v1

    return-object v0
.end method

.method public final f(I)V
    .locals 1

    const/4 v0, -0x1

    if-ne p1, v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget v0, p0, Lkairo/android/ui/a;->r:I

    or-int/2addr v0, p1

    iput v0, p0, Lkairo/android/ui/a;->r:I

    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    invoke-virtual {v0}, Lkairo/android/h/e;->f()V

    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    invoke-virtual {v0}, Lkairo/android/h/e;->g()V

    goto :goto_0
.end method

.method public final g()V
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    iget-object v0, p0, Lkairo/android/ui/a;->l:[Ljava/lang/String;

    aget-object v0, v0, v2

    iget-object v1, p0, Lkairo/android/ui/a;->k:[Ljava/lang/String;

    aget-object v1, v1, v2

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lkairo/android/ui/a;->l:[Ljava/lang/String;

    iget-object v1, p0, Lkairo/android/ui/a;->k:[Ljava/lang/String;

    aget-object v1, v1, v2

    aput-object v1, v0, v2

    :cond_0
    iget-object v0, p0, Lkairo/android/ui/a;->l:[Ljava/lang/String;

    aget-object v0, v0, v3

    iget-object v1, p0, Lkairo/android/ui/a;->k:[Ljava/lang/String;

    aget-object v1, v1, v3

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lkairo/android/ui/a;->l:[Ljava/lang/String;

    iget-object v1, p0, Lkairo/android/ui/a;->k:[Ljava/lang/String;

    aget-object v1, v1, v3

    aput-object v1, v0, v3

    :cond_1
    return-void
.end method

.method public final g(I)V
    .locals 0

    iput p1, p0, Lkairo/android/ui/a;->c:I

    return-void
.end method

.method public final h()V
    .locals 1

    const/16 v0, 0xa

    iput v0, p0, Lkairo/android/ui/a;->s:I

    return-void
.end method

.method public final i()V
    .locals 1

    const/4 v0, 0x4

    iput v0, p0, Lkairo/android/ui/a;->t:I

    return-void
.end method

.method public final j()V
    .locals 3

    iget v0, p0, Lkairo/android/ui/a;->o:I

    iget v1, p0, Lkairo/android/ui/a;->r:I

    or-int/2addr v0, v1

    const/4 v1, 0x0

    iput v1, p0, Lkairo/android/ui/a;->r:I

    iget v1, p0, Lkairo/android/ui/a;->p:I

    xor-int/2addr v1, v0

    and-int/2addr v1, v0

    iput v1, p0, Lkairo/android/ui/a;->q:I

    iput v0, p0, Lkairo/android/ui/a;->p:I

    iget v1, p0, Lkairo/android/ui/a;->o:I

    const v2, -0x200001

    and-int/2addr v1, v2

    iput v1, p0, Lkairo/android/ui/a;->o:I

    iget v1, p0, Lkairo/android/ui/a;->o:I

    const v2, -0x400001

    and-int/2addr v1, v2

    iput v1, p0, Lkairo/android/ui/a;->o:I

    iget-object v1, p0, Lkairo/android/ui/a;->n:[I

    iget v2, p0, Lkairo/android/ui/a;->m:I

    aput v0, v1, v2

    iget v0, p0, Lkairo/android/ui/a;->m:I

    add-int/lit8 v0, v0, 0x1

    iget-object v1, p0, Lkairo/android/ui/a;->n:[I

    array-length v1, v1

    rem-int/2addr v0, v1

    iput v0, p0, Lkairo/android/ui/a;->m:I

    return-void
.end method

.method public final k()I
    .locals 1

    iget v0, p0, Lkairo/android/ui/a;->o:I

    return v0
.end method

.method public final l()V
    .locals 3

    const/4 v1, 0x0

    move v0, v1

    :goto_0
    iget-object v2, p0, Lkairo/android/ui/a;->n:[I

    array-length v2, v2

    if-ge v0, v2, :cond_0

    iget-object v2, p0, Lkairo/android/ui/a;->n:[I

    aput v1, v2, v0

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    iput v1, p0, Lkairo/android/ui/a;->m:I

    iput v1, p0, Lkairo/android/ui/a;->q:I

    iput v1, p0, Lkairo/android/ui/a;->p:I

    iput v1, p0, Lkairo/android/ui/a;->r:I

    iput v1, p0, Lkairo/android/ui/a;->o:I

    return-void
.end method

.method public final o()Z
    .locals 1

    iget-boolean v0, p0, Lkairo/android/ui/a;->u:Z

    return v0
.end method

.method public final onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 3

    const/4 v2, 0x1

    const/16 v0, 0x19

    if-eq p1, v0, :cond_0

    const/16 v0, 0x18

    if-ne p1, v0, :cond_1

    :cond_0
    invoke-static {}, Lkairo/android/ui/z;->a()Lkairo/android/ui/z;

    move-result-object v0

    invoke-virtual {v0}, Lkairo/android/ui/z;->b()V

    :cond_1
    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    invoke-virtual {v0}, Lkairo/android/h/e;->h()V

    :cond_2
    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_3

    invoke-static {p1}, Lkairo/android/ui/a;->h(I)I

    move-result v0

    const/4 v1, -0x1

    if-eq v0, v1, :cond_3

    iget v1, p0, Lkairo/android/ui/a;->o:I

    shl-int v0, v2, v0

    or-int/2addr v0, v1

    iput v0, p0, Lkairo/android/ui/a;->o:I

    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    invoke-virtual {v0}, Lkairo/android/h/e;->f()V

    :cond_3
    return v2
.end method

.method public final onKeyUp(ILandroid/view/KeyEvent;)Z
    .locals 6

    const/16 v5, 0x19

    const/4 v4, 0x3

    const/4 v3, 0x1

    if-eq p1, v5, :cond_0

    const/16 v0, 0x18

    if-ne p1, v0, :cond_2

    :cond_0
    invoke-static {}, Lkairo/android/ui/IApplication;->a()Lkairo/android/ui/IApplication;

    move-result-object v0

    const-string v1, "audio"

    invoke-virtual {v0, v1}, Lkairo/android/ui/IApplication;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/media/AudioManager;

    invoke-virtual {v0, v4}, Landroid/media/AudioManager;->getStreamMaxVolume(I)I

    move-result v2

    invoke-virtual {v0, v4}, Landroid/media/AudioManager;->getStreamVolume(I)I

    move-result v1

    if-ne p1, v5, :cond_5

    if-lez v1, :cond_1

    add-int/lit8 v1, v1, -0x1

    :cond_1
    :goto_0
    invoke-virtual {v0, v4, v1, v3}, Landroid/media/AudioManager;->setStreamVolume(III)V

    invoke-static {}, Lkairo/android/ui/z;->a()Lkairo/android/ui/z;

    move-result-object v0

    invoke-virtual {v0}, Lkairo/android/ui/z;->b()V

    :cond_2
    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    invoke-virtual {v0}, Lkairo/android/h/e;->i()V

    :cond_3
    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_4

    invoke-static {p1}, Lkairo/android/ui/a;->h(I)I

    move-result v0

    const/4 v1, -0x1

    if-eq v0, v1, :cond_4

    iget v1, p0, Lkairo/android/ui/a;->o:I

    shl-int v0, v3, v0

    xor-int/lit8 v0, v0, -0x1

    and-int/2addr v0, v1

    iput v0, p0, Lkairo/android/ui/a;->o:I

    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    if-eqz v0, :cond_4

    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    invoke-virtual {v0}, Lkairo/android/h/e;->g()V

    :cond_4
    return v3

    :cond_5
    if-ge v1, v2, :cond_1

    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method

.method public final onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 5

    const/4 v4, 0x1

    iget-boolean v0, p0, Lkairo/android/ui/a;->f:Z

    if-nez v0, :cond_1

    :cond_0
    return v4

    :cond_1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    const-wide/16 v2, 0x28

    rem-long/2addr v0, v2

    long-to-int v0, v0

    iput v0, p0, Lkairo/android/ui/a;->g:I

    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    invoke-virtual {v0}, Lkairo/android/h/e;->a()Ljava/util/Vector;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    move v1, v0

    :goto_0
    if-ltz v1, :cond_0

    invoke-virtual {v2, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lkairo/android/h/a;

    invoke-virtual {v0, p1}, Lkairo/android/h/a;->a(Landroid/view/MotionEvent;)V

    add-int/lit8 v0, v1, -0x1

    move v1, v0

    goto :goto_0
.end method

.method public final onTrackballEvent(Landroid/view/MotionEvent;)Z
    .locals 4

    const/4 v3, 0x1

    iget-boolean v0, p0, Lkairo/android/ui/a;->f:Z

    if-nez v0, :cond_1

    :cond_0
    return v3

    :cond_1
    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    invoke-virtual {v0}, Lkairo/android/h/e;->a()Ljava/util/Vector;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    move v1, v0

    :goto_0
    if-ltz v1, :cond_0

    invoke-virtual {v2, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lkairo/android/h/a;

    invoke-virtual {v0}, Lkairo/android/h/a;->n()V

    add-int/lit8 v0, v1, -0x1

    move v1, v0

    goto :goto_0
.end method

.method public final p()Lkairo/android/h/e;
    .locals 1

    iget-object v0, p0, Lkairo/android/ui/a;->h:Lkairo/android/h/e;

    return-object v0
.end method

.method public final r()I
    .locals 2

    invoke-static {}, Lkairo/android/ui/IApplication;->a()Lkairo/android/ui/IApplication;

    move-result-object v0

    iget-boolean v1, p0, Lkairo/android/ui/a;->u:Z

    if-eqz v1, :cond_0

    invoke-virtual {v0}, Lkairo/android/ui/IApplication;->m()I

    move-result v0

    :goto_0
    return v0

    :cond_0
    invoke-virtual {v0}, Lkairo/android/ui/IApplication;->m()I

    move-result v0

    invoke-virtual {p0}, Lkairo/android/ui/a;->s()I

    move-result v1

    sub-int/2addr v0, v1

    goto :goto_0
.end method

.method public final s()I
    .locals 3

    invoke-virtual {p0}, Lkairo/android/ui/a;->t()Z

    move-result v0

    if-eqz v0, :cond_0

    iget v0, p0, Lkairo/android/ui/a;->i:I

    :goto_0
    return v0

    :cond_0
    invoke-static {}, Lkairo/android/ui/IApplication;->a()Lkairo/android/ui/IApplication;

    move-result-object v1

    invoke-virtual {v1}, Lkairo/android/ui/IApplication;->s()I

    move-result v0

    if-lez v0, :cond_1

    iput v0, p0, Lkairo/android/ui/a;->i:I

    goto :goto_0

    :cond_1
    invoke-virtual {v1}, Lkairo/android/ui/IApplication;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    sget-object v2, Lkairo/android/ui/a;->x:Landroid/graphics/Rect;

    invoke-virtual {v0, v2}, Landroid/view/View;->getWindowVisibleDisplayFrame(Landroid/graphics/Rect;)V

    const-string v0, "window"

    invoke-virtual {v1, v0}, Lkairo/android/ui/IApplication;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    sget-object v1, Lkairo/android/ui/a;->y:Landroid/util/DisplayMetrics;

    invoke-virtual {v0, v1}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    sget-object v0, Lkairo/android/ui/a;->x:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->top:I

    if-eqz v0, :cond_2

    sget-object v0, Lkairo/android/ui/a;->x:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->top:I

    :goto_1
    iput v0, p0, Lkairo/android/ui/a;->i:I

    iget v0, p0, Lkairo/android/ui/a;->i:I

    goto :goto_0

    :cond_2
    sget-object v0, Lkairo/android/ui/a;->y:Landroid/util/DisplayMetrics;

    iget v0, v0, Landroid/util/DisplayMetrics;->heightPixels:I

    sget-object v1, Lkairo/android/ui/a;->x:Landroid/graphics/Rect;

    iget v1, v1, Landroid/graphics/Rect;->bottom:I

    sub-int/2addr v0, v1

    goto :goto_1
.end method

.method public final surfaceChanged(Landroid/view/SurfaceHolder;III)V
    .locals 1

    iget-boolean v0, p0, Lkairo/android/ui/a;->v:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    iput-boolean v0, p0, Lkairo/android/ui/a;->v:Z

    :cond_0
    invoke-static {}, Lkairo/android/ui/IApplication;->a()Lkairo/android/ui/IApplication;

    move-result-object v0

    invoke-virtual {v0}, Lkairo/android/ui/IApplication;->q()Lkairo/android/a/b;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Lkairo/android/a/b;->q()V

    :cond_1
    return-void
.end method

.method public final surfaceCreated(Landroid/view/SurfaceHolder;)V
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lkairo/android/ui/a;->f:Z

    return-void
.end method

.method public final surfaceDestroyed(Landroid/view/SurfaceHolder;)V
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lkairo/android/ui/a;->f:Z

    return-void
.end method

.method public final t()Z
    .locals 2

    iget v0, p0, Lkairo/android/ui/a;->i:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final u()Z
    .locals 1

    iget-boolean v0, p0, Lkairo/android/ui/a;->w:Z

    return v0
.end method

.method public final v()I
    .locals 5

    const/4 v1, 0x2

    const/4 v2, 0x0

    invoke-static {}, Lkairo/android/ui/IApplication;->a()Lkairo/android/ui/IApplication;

    move-result-object v0

    invoke-virtual {v0}, Lkairo/android/ui/IApplication;->s()I

    move-result v3

    if-lez v3, :cond_0

    iput v1, p0, Lkairo/android/ui/a;->j:I

    :goto_0
    return v1

    :cond_0
    invoke-virtual {v0}, Lkairo/android/ui/IApplication;->getWindow()Landroid/view/Window;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v3

    sget-object v4, Lkairo/android/ui/a;->x:Landroid/graphics/Rect;

    invoke-virtual {v3, v4}, Landroid/view/View;->getWindowVisibleDisplayFrame(Landroid/graphics/Rect;)V

    const-string v3, "window"

    invoke-virtual {v0, v3}, Lkairo/android/ui/IApplication;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    sget-object v3, Lkairo/android/ui/a;->y:Landroid/util/DisplayMetrics;

    invoke-virtual {v0, v3}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    sget-object v0, Lkairo/android/ui/a;->x:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->top:I

    if-lez v0, :cond_1

    :cond_1
    sget-object v0, Lkairo/android/ui/a;->x:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->bottom:I

    sget-object v3, Lkairo/android/ui/a;->y:Landroid/util/DisplayMetrics;

    iget v3, v3, Landroid/util/DisplayMetrics;->heightPixels:I

    if-ge v0, v3, :cond_3

    move v0, v1

    :goto_1
    iput v0, p0, Lkairo/android/ui/a;->j:I

    iget v0, p0, Lkairo/android/ui/a;->j:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_2

    iget v1, p0, Lkairo/android/ui/a;->j:I

    goto :goto_0

    :cond_2
    move v1, v2

    goto :goto_0

    :cond_3
    move v0, v2

    goto :goto_1
.end method

.method public final w()Z
    .locals 2

    iget v0, p0, Lkairo/android/ui/a;->j:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
